﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Project.BIZ;
using Project.IBIZ;

namespace Project.UI
{
    public partial class TransactionHistoryList : System.Web.UI.Page
    {
        /// <summary>
        /// Global instance from TransactionHistoryList Business layer
        /// </summary>
        ITransactionHistoryListBIZ _transactionHistoryList = new TransactionHistoryListBIZ();

        protected void Page_Load(object sender, EventArgs e)
        {
            LoadTransactionHistory();
        }

        private void LoadTransactionHistory()
        {
            try
            {
                GridView1.DataSource = _transactionHistoryList.LoadTransactionHistory();
                GridView1.DataBind();
            }
            catch (Exception)
            {
                
                throw;
            }
        }
    }
}